﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace WcfCloudMusic.DataContracts
{
    /// <summary>
    /// DCMusic
    /// </summary>
    [DataContract(Name = "Music", Namespace = "WcfCloudMusic.DataContracts.DCMusic")]
    public class DCMusic
    {
        /// <summary>
        /// Gets or sets the identifier.
        /// </summary>
        [DataMember]
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the playlist identifier.
        /// </summary>
        [DataMember]
        public int PlaylistId { get; set; }

        /// <summary>
        /// Gets or sets the GPS identifier.
        /// </summary>
        [DataMember]
        public int GpsId { get; set; }

        /// <summary>
        /// Gets or sets the user identifier.
        /// </summary>
        [DataMember]
        public int UserId { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the artist.
        /// </summary>
        [DataMember]
        public string Artist { get; set; }

        /// <summary>
        /// Gets or sets the album artist.
        /// </summary>
        [DataMember]
        public string AlbumArtist { get; set; }

        /// <summary>
        /// Gets or sets the album.
        /// </summary>
        [DataMember]
        public string Album { get; set; }

        /// <summary>
        /// Gets or sets the year.
        /// </summary>
        [DataMember]
        public int? Year { get; set; }

        /// <summary>
        /// Gets or sets the genre.
        /// </summary>
        [DataMember]
        public string Genre { get; set; }

        /// <summary>
        /// Gets or sets the format.
        /// </summary>
        [DataMember]
        public string Format { get; set; }

        /// <summary>
        /// Gets or sets the size of the file.
        /// </summary>
        [DataMember]
        public float? FileSize { get; set; }

        /// <summary>
        /// Gets or sets the track no.
        /// </summary>
        [DataMember]
        public int? TrackNo { get; set; }

        /// <summary>
        /// Gets or sets the date added.
        /// </summary>
        [DataMember]
        public string DateAdded { get; set; }

        /// <summary>
        /// Gets or sets the bit rate.
        /// </summary>
        [DataMember]
        public int? BitRate { get; set; }

        /// <summary>
        /// Gets or sets the sample rate.
        /// </summary>
        [DataMember]
        public int? SampleRate { get; set; }

        /// <summary>
        /// Gets or sets the total time.
        /// </summary>
        [DataMember]
        public float? TotalTime { get; set; }

        /// <summary>
        /// Gets or sets the file location.
        /// </summary>
        [DataMember]
        public string FileLocation { get; set; }

        /// <summary>
        /// Gets or sets the last played.
        /// </summary>
        [DataMember]
        public string LastPlayed { get; set; }
    }
}